package com.hongxun.design.bean;

import android.view.View;
import android.widget.CompoundButton;

import com.hongxun.design.ui.switchview.SwitchView;

/**
 * Created by zerdoor_pc on 2016/7/12.
 */
public class SettingItemBean {

    private String title;
    private String value;
    private String code;
    private int type;
    private boolean initflag = true;

    private View.OnClickListener listener;
    private CompoundButton.OnCheckedChangeListener clistener;
    private SwitchView.OnStateChangedListener slistener;


    public SettingItemBean(String title, int type, boolean initflag, CompoundButton.OnCheckedChangeListener clistener) {
        this.title = title;
        this.type = type;
        this.initflag = initflag;
        this.clistener = clistener;
    }

    public SettingItemBean(String title, int type, boolean initflag, SwitchView.OnStateChangedListener slistener) {
        this.title = title;
        this.type = type;
        this.initflag = initflag;
        this.slistener = slistener;
    }

    public SettingItemBean(String title, String value, int type, View.OnClickListener listener) {
        this.value = value;
        this.title = title;
        this.type = type;
        this.listener = listener;
    }

    public SettingItemBean(String title, String value,String code, int type, View.OnClickListener listener) {
        this.value = value;
        this.title = title;
        this.code = code;
        this.type = type;
        this.listener = listener;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public CompoundButton.OnCheckedChangeListener getClistener() {
        return clistener;
    }

    public void setClistener(CompoundButton.OnCheckedChangeListener clistener) {
        this.clistener = clistener;
    }

    public SwitchView.OnStateChangedListener getSlistener() {
        return slistener;
    }

    public void setSlistener(SwitchView.OnStateChangedListener slistener) {
        this.slistener = slistener;
    }

    public View.OnClickListener getListener() {
        return listener;
    }

    public void setListener(View.OnClickListener listener) {
        this.listener = listener;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isInitflag() {
        return initflag;
    }

    public void setInitflag(boolean initflag) {
        this.initflag = initflag;
    }
}
